strftime() is a method on the datetime class (which confusingly is part of the datetime module), so you need an instantiated datetime object to call it on.
AttributeError: module 'datetime' has no attribute 'strptime' So now it wants me to change it to datetime.datetime.strptime() Why would that happen randomly?